import React, { Component } from 'react'; //imrc
class XiaojiejieItem extends Component { //cc
    constructor() {
        super()
        this.handleClick = this.handleClick.bind(this)
    }

    handleClick() {
        this.props.deleteItem(this.props.index)
    }

    render() {
        return (
            <div onClick={this.handleClick}>{this.props.value}</div>
        );
    }
}
export default XiaojiejieItem;